package com.pyk.service;



import com.pyk.entity.Homework;
import com.pyk.entity.Question;

import java.util.List;

public interface HomeworkService {

    /*
    * 查询所有作业
    * */
    List<Homework> list();

    /*
    * 增加作业
    * */
    void add(Homework homework);

    /*
    * 删除作业
    * */
    void deleteHomeworkById(Integer homeworkId);

    /*
    * 修改作业
    * */
    Homework getById(Integer homeworkId);

    void update(Homework homework);


    /*
    * 在作业中添加题目
    * */
    void createHomeworkWithQuestions(Homework homework, List<Question> questions, int totalScorePerQuestion);

    void deleteHwQt(Integer homeworkId, Integer questionId);

    void updateHomeworkQ(Integer homeworkId, Long questionId, Question updatedQuestion);
}
